package com.pp.demo.common.constant;

public enum AuthErrorCode implements ErrorCode {
    TOKEN_NOT_FOUND("B0001", "令牌未找到"),
    TOKEN_INVALID("B0002", "无效令牌"),
    TOKEN_EXPIRED("B0003", "令牌过期"),
    TOKEN_VALIDATION_ERROR("B0004", "令牌验证异常"),
            ;

    private final String code;
    private final String message;

    AuthErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
